package com.yanqu.road.entity.decoration;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.DataStatus;
import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_u_mammon_decoration",desc = "用户财神称号数量")
public class UserMammonDecoration extends DataObject {

    @FieldTypeAnnotation(desc = "玩家id",select = true,update = true)
    private long userId;
    @FieldTypeAnnotation(desc = "财神类型",update = true)
    private int mammonType;
    @FieldTypeAnnotation(desc = "财神数量")
    private int num;

    public long getUserId() {
        return userId;
    }
    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setOp(DataStatus.Update);
        }
    }

    public int getMammonType() {
        return mammonType;
    }
    public void setMammonType(int mammonType) {
        if (this.mammonType != mammonType) {
            this.mammonType = mammonType;
            setOp(DataStatus.Update);
        }
    }

    public int getNum() {
        return num;
    }
    public void setNum(int num) {
        if (this.num != num) {
            this.num = num;
            setOp(DataStatus.Update);
        }
    }
}
